/*************************************************************************  
 *   This file is part of UBBMPSREADER.
 *
 *   UBBMPSREADER is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   UBBMPSREADER is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with UBBMPSREADER.  If not, see <http://www.gnu.org/licenses/>. 
 *************************************************************************/

package cs.ubbcluj.ro.datatypes.interfaces;

/**
 * Vector interface
 * 
 * @author avadas
 * @version 1.0
 */
public interface Vector {
	
	Vector createHelperVector(int n);
	
	int getNrOfRows();
	int getNrOfNonZeros();	

	double get(int index);
	void set(int index, double value) throws InterruptedException;
	void set(Vector v);
	void addElement(int index, double value);

    int index(int index);
    double min();
    double max();
    double infinityNorm();
    void round();
    double norm();
    double sumOfComponents();
    
    Vector sum(Vector v) throws InterruptedException;
    Vector sum(double value) throws InterruptedException;    
    Vector productScalar(int index, double value);
    Vector productScalar(Vector v);
    double product(Vector v) throws InterruptedException;
    Vector product(Matrix m) throws InterruptedException;
    Vector product(double value);
    Vector diff(Vector v) throws InterruptedException;
    Vector inv();
    Vector sqrt() throws InterruptedException;
    
    void print();
}
